home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1988-08-01 | 8.1 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Aug 1 13:00:00 1988, modified Mon Aug 1 13:00:00 1988, creator 'MPS ', type ASCII, 7683 bytes "ResEd.h" , at 0x1e83 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 52 65 73 45 64 2e | 68 00 00 00 00 00 00 00 |..ResEd.|h.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 1e 03 00 | 00 01 7e 9f 1a 54 10 9f |........|..~..T..|
|00000060| 1a 54 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.T......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 88 f2 00 00 |........|........|
|00000080| 2f 2a 0d 46 69 6c 65 20 | 52 65 73 45 64 2e 70 0d |/*.File |ResEd.p.|
|00000090| 0d 43 6f 70 79 72 69 67 | 68 74 20 41 70 70 6c 65 |.Copyrig|ht Apple|
|000000a0| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 20 | Compute|r, Inc. |
|000000b0| 31 39 38 34 2d 31 39 38 | 38 0d 41 6c 6c 20 72 69 |1984-198|8.All ri|
|000000c0| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 0d 0d |ghts res|erved...|
|000000d0| 09 50 72 6f 74 6f 74 79 | 70 65 20 52 65 73 6f 75 |.Prototy|pe Resou|
|000000e0| 72 63 65 20 45 64 69 74 | 20 55 6e 69 74 20 66 6f |rce Edit| Unit fo|
|000000f0| 72 20 69 6e 73 74 61 6e | 63 65 73 20 6f 66 20 74 |r instan|ces of t|
|00000100| 79 70 65 20 65 64 69 74 | 6f 72 73 2e 20 54 68 69 |ype edit|ors. Thi|
|00000110| 73 20 73 68 6f 75 6c 64 | 20 62 65 0d 09 69 6e 63 |s should| be..inc|
|00000120| 6c 75 64 65 64 20 62 79 | 20 61 6e 79 20 43 20 69 |luded by| any C i|
|00000130| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00000140| 20 61 20 72 65 73 6f 75 | 72 63 65 20 65 64 69 74 | a resou|rce edit|
|00000150| 6f 72 20 22 64 72 69 76 | 65 72 22 2e 20 20 54 68 |or "driv|er". Th|
|00000160| 65 0d 09 63 6f 6d 70 61 | 6e 69 6f 6e 20 66 69 6c |e..compa|nion fil|
|00000170| 65 20 52 65 73 45 64 36 | 38 6b 2e 61 2e 6f 20 73 |e ResEd6|8k.a.o s|
|00000180| 68 6f 75 6c 64 20 62 65 | 20 6c 69 6e 6b 65 64 20 |hould be| linked |
|00000190| 77 69 74 68 20 74 68 65 | 20 52 65 73 58 58 58 58 |with the| ResXXXX|
|000001a0| 45 64 2e 63 2e 6f 20 74 | 6f 20 62 75 69 6c 64 0d |Ed.c.o t|o build.|
|000001b0| 09 74 68 65 20 66 69 6c | 65 20 66 6f 72 20 69 6e |.the fil|e for in|
|000001c0| 63 6c 75 73 69 6f 6e 20 | 69 6e 20 52 65 73 45 64 |clusion |in ResEd|
|000001d0| 69 74 2e 0d 09 0d 09 54 | 68 65 72 65 20 61 72 65 |it.....T|here are|
|000001e0| 20 74 77 6f 20 74 79 70 | 65 73 20 6f 66 20 64 72 | two typ|es of dr|
|000001f0| 69 76 65 72 73 3a 20 50 | 69 63 6b 65 72 73 20 61 |ivers: P|ickers a|
|00000200| 6e 64 20 45 64 69 74 6f | 72 73 2e 09 50 69 63 6b |nd Edito|rs..Pick|
|00000210| 65 72 73 20 61 72 65 20 | 67 69 76 65 6e 0d 09 61 |ers are |given..a|
|00000220| 20 72 65 73 6f 75 72 63 | 65 20 74 79 70 65 20 61 | resourc|e type a|
|00000230| 6e 64 20 73 68 6f 75 6c | 64 20 64 69 73 70 6c 61 |nd shoul|d displa|
|00000240| 79 20 61 6c 6c 20 6f 66 | 20 74 68 61 74 20 74 79 |y all of| that ty|
|00000250| 70 65 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |pe in th|e curren|
|00000260| 74 20 72 65 73 66 69 6c | 65 0d 09 69 6e 20 61 20 |t resfil|e..in a |
|00000270| 73 75 69 74 61 62 6c 65 | 20 66 6f 72 6d 61 74 2e |suitable| format.|
|00000280| 20 20 49 66 20 74 68 65 | 20 50 69 63 6b 65 72 20 | If the| Picker |
|00000290| 69 73 20 67 69 76 65 6e | 20 61 6e 20 6f 70 65 6e |is given| an open|
|000002a0| 20 63 61 6c 6c 20 41 4e | 44 20 74 68 65 72 65 27 | call AN|D there'|
|000002b0| 73 20 61 6e 0d 09 63 6f | 6d 70 61 74 69 62 6c 65 |s an..co|mpatible|
|000002c0| 20 45 64 69 74 6f 72 2c | 20 69 74 20 73 68 6f 75 | Editor,| it shou|
|000002d0| 6c 64 20 67 69 76 65 20 | 62 69 72 74 68 20 74 6f |ld give |birth to|
|000002e0| 20 74 68 65 20 45 64 69 | 74 6f 72 2e 20 20 54 68 | the Edi|tor. Th|
|000002f0| 65 20 45 64 69 74 6f 72 | 20 64 72 69 76 65 72 0d |e Editor| driver.|
|00000300| 09 69 73 20 67 69 76 65 | 6e 20 61 20 68 61 6e 64 |.is give|n a hand|
|00000310| 6c 65 20 74 6f 20 74 68 | 65 20 72 65 73 6f 75 72 |le to th|e resour|
|00000320| 63 65 20 6f 62 6a 65 63 | 74 20 61 6e 64 20 69 74 |ce objec|t and it|
|00000330| 20 73 68 6f 75 6c 64 20 | 6f 70 65 6e 20 75 70 20 | should |open up |
|00000340| 61 6e 20 65 64 69 74 0d | 09 77 69 6e 64 6f 77 28 |an edit.|.window(|
|00000350| 73 29 20 66 6f 72 20 74 | 68 65 20 75 73 65 72 2e |s) for t|he user.|
|00000360| 0d 09 0d 09 4e 6f 74 65 | 20 74 68 61 74 20 61 6e |....Note| that an|
|00000370| 79 62 6f 64 79 20 63 61 | 6e 20 6f 70 65 6e 20 50 |ybody ca|n open P|
|00000380| 69 63 6b 65 72 73 20 61 | 6e 64 20 45 64 69 74 6f |ickers a|nd Edito|
|00000390| 72 73 20 73 6f 2c 20 66 | 6f 72 20 69 6e 73 74 61 |rs so, f|or insta|
|000003a0| 6e 63 65 2c 20 61 20 64 | 69 61 6c 6f 67 0d 09 45 |nce, a d|ialog..E|
|000003b0| 64 69 74 6f 72 20 6d 69 | 67 68 74 20 6f 70 65 6e |ditor mi|ght open|
|000003c0| 20 61 6e 20 69 63 6f 6e | 20 50 69 63 6b 65 72 20 | an icon| Picker |
|000003d0| 66 6f 72 20 74 68 65 20 | 75 73 65 72 20 74 6f 20 |for the |user to |
|000003e0| 63 68 6f 6f 73 65 20 61 | 6e 20 61 70 70 72 6f 70 |choose a|n approp|
|000003f0| 72 69 61 74 65 20 69 63 | 6f 6e 2e 0d 09 41 6e 64 |riate ic|on...And|
|00000400| 2c 20 74 68 65 20 75 73 | 65 72 20 63 61 6e 2c 20 |, the us|er can, |
|00000410| 77 68 69 6c 65 20 69 6e | 20 74 68 65 20 69 63 6f |while in| the ico|
|00000420| 6e 20 50 69 63 6b 65 72 | 2c 20 6f 70 65 6e 20 74 |n Picker|, open t|
|00000430| 68 65 20 69 63 6f 6e 20 | 65 64 69 74 6f 72 20 74 |he icon |editor t|
|00000440| 6f 20 63 72 65 61 74 65 | 0d 09 61 6e 20 6e 65 77 |o create|..an new|
|00000450| 20 69 63 6f 6e 20 69 66 | 20 64 65 73 69 72 65 64 | icon if| desired|
|00000460| 0d 0d 2a 2f 0d 0d 23 69 | 6e 63 6c 75 64 65 09 3c |..*/..#i|nclude.<|
|00000470| 74 79 70 65 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |types.h>|.#includ|
|00000480| 65 09 3c 71 75 69 63 6b | 64 72 61 77 2e 68 3e 0d |e.<quick|draw.h>.|
|00000490| 23 69 6e 63 6c 75 64 65 | 09 3c 6c 69 73 74 73 2e |#include|.<lists.|
|000004a0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 09 3c 63 6f 6e |h>.#incl|ude.<con|
|000004b0| 74 72 6f 6c 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |trols.h>|.#includ|
|000004c0| 65 09 3c 77 69 6e 64 6f | 77 73 2e 68 3e 0d 23 69 |e.<windo|ws.h>.#i|
|000004d0| 6e 63 6c 75 64 65 09 3c | 65 76 65 6e 74 73 2e 68 |nclude.<|events.h|
|000004e0| 3e 0d 0d 2f 2a 20 53 74 | 61 6e 64 61 72 64 20 6d |>../* St|andard m|
|000004f0| 65 6e 75 73 20 65 78 70 | 6f 72 74 65 64 20 62 79 |enus exp|orted by|
|00000500| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 65 64 | the res|ource ed|
|00000510| 69 74 6f 72 20 73 68 65 | 6c 6c 20 2a 2f 0d 0d 23 |itor she|ll */..#|
|00000520| 64 65 66 69 6e 65 09 46 | 69 6c 65 4d 65 6e 75 09 |define.F|ileMenu.|
|00000530| 09 32 0d 0d 23 64 65 66 | 69 6e 65 09 4e 65 77 49 |.2..#def|ine.NewI|
|00000540| 74 65 6d 09 09 09 31 0d | 23 64 65 66 69 6e 65 09 |tem...1.|#define.|
|00000550| 4f 70 65 6e 49 74 65 6d | 09 09 32 0d 23 64 65 66 |OpenItem|..2.#def|
|00000560| 69 6e 65 09 4f 70 6e 4f | 74 68 65 72 09 09 33 0d |ine.OpnO|ther..3.|
|00000570| 23 64 65 66 69 6e 65 09 | 4f 70 6e 47 6e 72 6c 09 |#define.|OpnGnrl.|
|00000580| 09 09 34 0d 0d 23 64 65 | 66 69 6e 65 09 43 6c 6f |..4..#de|fine.Clo|
|00000590| 73 65 49 74 65 6d 09 09 | 36 0d 23 64 65 66 69 6e |seItem..|6.#defin|
|000005a0| 65 09 53 61 76 65 49 74 | 65 6d 09 09 37 0d 23 64 |e.SaveIt|em..7.#d|
|000005b0| 65 66 69 6e 65 09 52 65 | 76 65 72 74 49 74 65 6d |efine.Re|vertItem|
|000005c0| 09 09 38 0d 23 64 65 66 | 69 6e 65 09 47 65 74 49 |..8.#def|ine.GetI|
|000005d0| 6e 66 6f 49 74 65 6d 09 | 09 39 0d 23 64 65 66 69 |nfoItem.|.9.#defi|
|000005e0| 6e 65 09 54 72 61 6e 73 | 66 65 72 49 74 65 6d 09 |ne.Trans|ferItem.|
|000005f0| 31 31 0d 23 64 65 66 69 | 6e 65 09 51 75 69 74 49 |11.#defi|ne.QuitI|
|00000600| 74 65 6d 09 09 31 32 0d | 0d 23 64 65 66 69 6e 65 |tem..12.|.#define|
|00000610| 09 6e 65 77 4d 61 73 6b | 20 09 09 32 0d 23 64 65 |.newMask| ..2.#de|
|00000620| 66 69 6e 65 09 6f 70 65 | 6e 4d 61 73 6b 20 09 09 |fine.ope|nMask ..|
|00000630| 34 0d 23 64 65 66 69 6e | 65 09 6f 70 65 6e 41 73 |4.#defin|e.openAs|
|00000640| 4d 61 73 6b 20 09 09 38 | 0d 23 64 65 66 69 6e 65 |Mask ..8|.#define|
|00000650| 09 6f 70 65 6e 47 6e 72 | 6c 4d 61 73 6b 09 30 78 |.openGnr|lMask.0x|
|00000660| 31 30 0d 23 64 65 66 69 | 6e 65 09 63 6c 6f 73 65 |10.#defi|ne.close|
|00000670| 4d 61 73 6b 09 09 30 78 | 34 30 0d 23 64 65 66 69 |Mask..0x|40.#defi|
|00000680| 6e 65 09 73 61 76 65 4d | 61 73 6b 09 09 30 78 38 |ne.saveM|ask..0x8|
|00000690| 30 0d 23 64 65 66 69 6e | 65 09 72 65 76 65 72 74 |0.#defin|e.revert|
|000006a0| 4d 61 73 6b 09 09 30 78 | 31 30 30 0d 23 64 65 66 |Mask..0x|100.#def|
|000006b0| 69 6e 65 09 67 65 74 49 | 6e 66 6f 4d 61 73 6b 09 |ine.getI|nfoMask.|
|000006c0| 09 30 78 32 30 30 0d 23 | 64 65 66 69 6e 65 09 74 |.0x200.#|define.t|
|000006d0| 72 61 6e 73 66 65 72 4d | 61 73 6b 09 30 78 38 30 |ransferM|ask.0x80|
|000006e0| 30 0d 23 64 65 66 69 6e | 65 09 71 75 69 74 4d 61 |0.#defin|e.quitMa|
|000006f0| 73 6b 09 09 30 78 31 30 | 30 30 0d 23 64 65 66 69 |sk..0x10|00.#defi|
|00000700| 6e 65 09 64 69 73 61 62 | 6c 65 64 4d 61 73 6b 09 |ne.disab|ledMask.|
|00000710| 30 78 46 46 46 46 45 30 | 30 31 0d 0d 23 64 65 66 |0xFFFFE0|01..#def|
|00000720| 69 6e 65 09 66 69 6c 65 | 51 75 69 74 09 09 64 69 |ine.file|Quit..di|
|00000730| 73 61 62 6c 65 64 4d 61 | 73 6b 20 2b 20 74 72 61 |sabledMa|sk + tra|
|00000740| 6e 73 66 65 72 4d 61 73 | 6b 20 2b 20 71 75 69 74 |nsferMas|k + quit|
|00000750| 4d 61 73 6b 0d 23 64 65 | 66 69 6e 65 20 66 69 6c |Mask.#de|fine fil|
|00000760| 65 43 6c 6f 73 65 09 09 | 66 69 6c 65 51 75 69 74 |eClose..|fileQuit|
|00000770| 20 2b 20 63 6c 6f 73 65 | 4d 61 73 6b 20 2b 20 73 | + close|Mask + s|
|00000780| 61 76 65 4d 61 73 6b 0d | 23 64 65 66 69 6e 65 09 |aveMask.|#define.|
|00000790| 66 69 6c 65 41 6c 6c 09 | 09 09 66 69 6c 65 43 6c |fileAll.|..fileCl|
|000007a0| 6f 73 65 20 2b 20 6e 65 | 77 4d 61 73 6b 20 2b 20 |ose + ne|wMask + |
|000007b0| 6f 70 65 6e 4d 61 73 6b | 20 2b 20 6f 70 65 6e 41 |openMask| + openA|
|000007c0| 73 4d 61 73 6b 20 2b 20 | 6f 70 65 6e 47 6e 72 6c |sMask + |openGnrl|
|000007d0| 4d 61 73 6b 20 2b 20 72 | 65 76 65 72 74 4d 61 73 |Mask + r|evertMas|
|000007e0| 6b 20 2b 20 67 65 74 49 | 6e 66 6f 4d 61 73 6b 0d |k + getI|nfoMask.|
|000007f0| 23 64 65 66 69 6e 65 09 | 66 69 6c 65 4e 6f 52 65 |#define.|fileNoRe|
|00000800| 76 65 72 74 09 66 69 6c | 65 41 6c 6c 20 2d 20 72 |vert.fil|eAll - r|
|00000810| 65 76 65 72 74 4d 61 73 | 6b 0d 23 64 65 66 69 6e |evertMas|k.#defin|
|00000820| 65 09 66 69 6c 65 4e 6f | 49 6e 66 6f 09 09 66 69 |e.fileNo|Info..fi|
|00000830| 6c 65 41 6c 6c 20 2d 20 | 67 65 74 49 6e 66 6f 4d |leAll - |getInfoM|
|00000840| 61 73 6b 0d 23 64 65 66 | 69 6e 65 09 66 69 6c 65 |ask.#def|ine.file|
|00000850| 4e 6f 4e 65 77 09 09 66 | 69 6c 65 41 6c 6c 20 2d |NoNew..f|ileAll -|
|00000860| 20 6e 65 77 4d 61 73 6b | 20 0d 23 64 65 66 69 6e | newMask| .#defin|
|00000870| 65 09 66 69 6c 65 4e 6f | 4f 70 65 6e 09 09 66 69 |e.fileNo|Open..fi|
|00000880| 6c 65 43 6c 6f 73 65 20 | 2b 20 6e 65 77 4d 61 73 |leClose |+ newMas|
|00000890| 6b 20 2b 20 72 65 76 65 | 72 74 4d 61 73 6b 20 2b |k + reve|rtMask +|
|000008a0| 20 67 65 74 49 6e 66 6f | 4d 61 73 6b 0d 23 64 65 | getInfo|Mask.#de|
|000008b0| 66 69 6e 65 09 66 69 6c | 65 4e 6f 4e 65 77 4f 72 |fine.fil|eNoNewOr|
|000008c0| 4f 70 65 6e 09 66 69 6c | 65 4e 6f 4f 70 65 6e 20 |Open.fil|eNoOpen |
|000008d0| 2d 20 6e 65 77 4d 61 73 | 6b 0d 23 64 65 66 69 6e |- newMas|k.#defin|
|000008e0| 65 09 66 69 6c 65 54 6f | 70 09 09 09 66 69 6c 65 |e.fileTo|p...file|
|000008f0| 43 6c 6f 73 65 20 2b 20 | 72 65 76 65 72 74 4d 61 |Close + |revertMa|
|00000900| 73 6b 20 2b 20 67 65 74 | 49 6e 66 6f 4d 61 73 6b |sk + get|InfoMask|
|00000910| 0d 23 64 65 66 69 6e 65 | 09 66 69 6c 65 4f 70 51 |.#define|.fileOpQ|
|00000920| 75 4f 6e 6c 79 09 66 69 | 6c 65 51 75 69 74 20 2b |uOnly.fi|leQuit +|
|00000930| 20 6f 70 65 6e 4d 61 73 | 6b 20 2b 20 6f 70 65 6e | openMas|k + open|
|00000940| 41 73 4d 61 73 6b 20 2b | 20 6f 70 65 6e 47 6e 72 |AsMask +| openGnr|
|00000950| 6c 4d 61 73 6b 0d 23 64 | 65 66 69 6e 65 09 66 69 |lMask.#d|efine.fi|
|00000960| 6c 65 52 4f 4d 53 74 75 | 66 66 09 66 69 6c 65 51 |leROMStu|ff.fileQ|
|00000970| 75 69 74 20 20 2b 20 6f | 70 65 6e 4d 61 73 6b 20 |uit + o|penMask |
|00000980| 2b 20 6f 70 65 6e 41 73 | 4d 61 73 6b 20 2b 20 6f |+ openAs|Mask + o|
|00000990| 70 65 6e 47 6e 72 6c 4d | 61 73 6b 20 2b 20 63 6c |penGnrlM|ask + cl|
|000009a0| 6f 73 65 4d 61 73 6b 20 | 2b 20 67 65 74 49 6e 66 |oseMask |+ getInf|
|000009b0| 6f 4d 61 73 6b 0d 23 64 | 65 66 69 6e 65 09 66 69 |oMask.#d|efine.fi|
|000009c0| 6c 65 44 69 73 6b 53 74 | 75 66 66 09 66 69 6c 65 |leDiskSt|uff.file|
|000009d0| 51 75 69 74 20 2b 20 6e | 65 77 4d 61 73 6b 20 2b |Quit + n|ewMask +|
|000009e0| 20 6f 70 65 6e 4d 61 73 | 6b 20 2b 20 63 6c 6f 73 | openMas|k + clos|
|000009f0| 65 4d 61 73 6b 20 2b 20 | 67 65 74 49 6e 66 6f 4d |eMask + |getInfoM|
|00000a00| 61 73 6b 0d 0d 23 64 65 | 66 69 6e 65 09 45 64 69 |ask..#de|fine.Edi|
|00000a10| 74 4d 65 6e 75 09 33 0d | 0d 23 64 65 66 69 6e 65 |tMenu.3.|.#define|
|00000a20| 09 55 6e 64 6f 49 74 65 | 6d 09 31 0d 23 64 65 66 |.UndoIte|m.1.#def|
|00000a30| 69 6e 65 09 43 75 74 49 | 74 65 6d 20 09 33 0d 23 |ine.CutI|tem .3.#|
|00000a40| 64 65 66 69 6e 65 09 43 | 6f 70 79 49 74 65 6d 09 |define.C|opyItem.|
|00000a50| 34 0d 23 64 65 66 69 6e | 65 09 50 61 73 74 65 49 |4.#defin|e.PasteI|
|00000a60| 74 65 6d 09 35 0d 23 64 | 65 66 69 6e 65 09 43 6c |tem.5.#d|efine.Cl|
|00000a70| 65 61 72 49 74 65 6d 09 | 36 0d 23 64 65 66 69 6e |earItem.|6.#defin|
|00000a80| 65 09 44 75 70 49 74 65 | 6d 20 09 38 0d 0d 23 64 |e.DupIte|m .8..#d|
|00000a90| 65 66 69 6e 65 09 65 64 | 69 74 41 6c 6c 20 09 20 |efine.ed|itAll . |
|00000aa0| 30 78 46 46 46 46 46 46 | 37 42 09 2f 2a 20 41 6c |0xFFFFFF|7B./* Al|
|00000ab0| 6c 20 65 6e 61 62 6c 65 | 64 20 2a 2f 0d 23 64 65 |l enable|d */.#de|
|00000ac0| 66 69 6e 65 09 65 64 69 | 74 4e 6f 55 6e 64 6f 09 |fine.edi|tNoUndo.|
|00000ad0| 20 30 78 46 46 46 46 46 | 46 37 39 09 2f 2a 20 41 | 0xFFFFF|F79./* A|
|00000ae0| 6c 6c 20 65 6e 61 62 6c | 65 64 20 65 78 63 65 70 |ll enabl|ed excep|
|00000af0| 74 20 75 6e 64 6f 20 2a | 2f 0d 23 64 65 66 69 6e |t undo *|/.#defin|
|00000b00| 65 09 65 64 69 74 4e 6f | 44 75 70 09 20 30 78 46 |e.editNo|Dup. 0xF|
|00000b10| 46 46 46 46 45 37 39 09 | 2f 2a 20 41 6c 6c 20 65 |FFFFE79.|/* All e|
|00000b20| 6e 61 62 6c 65 64 20 65 | 78 63 65 70 74 20 75 6e |nabled e|xcept un|
|00000b30| 64 6f 20 61 6e 64 20 64 | 75 70 6c 69 63 61 74 65 |do and d|uplicate|
|00000b40| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 65 64 69 74 | */.#def|ine.edit|
|00000b50| 4e 6f 6e 65 09 20 30 78 | 46 46 46 46 46 45 30 31 |None. 0x|FFFFFE01|
|00000b60| 09 2f 2a 20 4e 6f 6e 65 | 20 65 6e 61 62 6c 65 64 |./* None| enabled|
|00000b70| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 65 64 69 74 | */.#def|ine.edit|
|00000b80| 41 63 63 20 09 20 30 78 | 30 30 30 30 30 30 37 42 |Acc . 0x|0000007B|
|00000b90| 09 2f 2a 20 43 6f 6d 6d | 6f 6e 20 65 6e 61 62 6c |./* Comm|on enabl|
|00000ba0| 65 64 20 66 6f 72 20 64 | 65 73 6b 20 61 63 63 2e |ed for d|esk acc.|
|00000bb0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 65 64 69 74 | */.#def|ine.edit|
|00000bc0| 43 6f 70 79 09 20 30 78 | 46 46 46 46 46 45 31 31 |Copy. 0x|FFFFFE11|
|00000bd0| 09 2f 2a 20 4f 6e 6c 79 | 20 63 6f 70 79 20 65 6e |./* Only| copy en|
|00000be0| 61 62 6c 65 64 20 2a 2f | 0d 0d 0d 09 74 79 70 65 |abled */|....type|
|00000bf0| 64 65 66 20 63 68 61 72 | 20 73 74 72 36 34 5b 36 |def char| str64[6|
|00000c00| 35 5d 3b 0d 0d 20 20 20 | 2f 2a 20 6d 61 70 20 65 |5];.. |/* map e|
|00000c10| 6e 74 72 79 20 64 65 66 | 20 66 6f 72 20 6e 65 77 |ntry def| for new|
|00000c20| 20 72 65 73 6f 75 72 63 | 65 20 6d 61 6e 61 67 65 | resourc|e manage|
|00000c30| 72 20 63 61 6c 6c 20 2a | 2f 0d 09 74 79 70 65 64 |r call *|/..typed|
|00000c40| 65 66 20 73 74 72 75 63 | 74 20 7b 0d 20 20 20 09 |ef struc|t {. .|
|00000c50| 09 73 68 6f 72 74 09 09 | 52 49 44 3b 0d 09 09 73 |.short..|RID;...s|
|00000c60| 68 6f 72 74 09 09 52 4e | 61 6d 65 4f 66 66 3b 0d |hort..RN|ameOff;.|
|00000c70| 09 09 6c 6f 6e 67 09 09 | 52 4c 6f 63 6e 3b 0d 09 |..long..|RLocn;..|
|00000c80| 09 48 61 6e 64 6c 65 09 | 09 52 48 6e 64 6c 3b 0d |.Handle.|.RHndl;.|
|00000c90| 09 7d 20 52 65 73 4d 61 | 70 45 6e 74 72 79 3b 0d |.} ResMa|pEntry;.|
|00000ca0| 0d 09 2f 2a 20 45 61 63 | 68 20 64 72 69 76 65 72 |../* Eac|h driver|
|00000cb0| 20 68 61 73 20 69 74 73 | 20 6f 77 6e 20 6f 62 6a | has its| own obj|
|00000cc0| 65 63 74 20 68 61 6e 64 | 6c 65 2e 20 54 68 69 73 |ect hand|le. This|
|00000cd0| 20 68 61 73 20 74 6f 20 | 73 74 61 72 74 20 77 69 | has to |start wi|
|00000ce0| 74 68 20 61 20 68 61 6e | 64 6c 65 20 20 2a 2f 0d |th a han|dle */.|
|00000cf0| 09 2f 2a 20 74 6f 20 69 | 74 73 20 70 61 72 65 6e |./* to i|ts paren|
|00000d00| 74 27 73 20 6f 62 6a 65 | 63 74 20 66 6f 6c 6c 6f |t's obje|ct follo|
|00000d10| 77 65 64 20 62 79 20 74 | 68 65 20 6e 61 6d 65 20 |wed by t|he name |
|00000d20| 64 69 73 74 69 6e 67 75 | 69 73 68 69 6e 67 20 74 |distingu|ishing t|
|00000d30| 68 65 20 66 61 74 68 65 | 72 20 20 20 2a 2f 0d 09 |he fathe|r */..|
|00000d40| 2f 2a 20 54 68 69 73 20 | 6e 61 6d 65 20 77 69 6c |/* This |name wil|
|00000d50| 6c 20 62 65 20 70 61 72 | 74 20 6f 66 20 74 68 65 |l be par|t of the|
|00000d60| 20 73 6f 6e 27 73 20 77 | 69 6e 64 6f 77 20 74 69 | son's w|indow ti|
|00000d70| 74 6c 65 2e 20 54 68 65 | 20 6e 65 78 74 20 66 69 |tle. The| next fi|
|00000d80| 65 6c 64 20 73 68 6f 75 | 6c 64 20 2a 2f 0d 09 2f |eld shou|ld */../|
|00000d90| 2a 20 62 65 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |* be the| window |
|00000da0| 6f 66 20 74 68 65 20 6f | 62 6a 20 28 6d 61 79 20 |of the o|bj (may |
|00000db0| 62 65 20 75 73 65 64 20 | 62 79 20 73 6f 6e 20 74 |be used |by son t|
|00000dc0| 6f 20 67 65 74 20 62 61 | 63 6b 20 74 6f 20 74 68 |o get ba|ck to th|
|00000dd0| 65 20 66 61 74 68 65 72 | 20 20 2a 2f 0d 09 2f 2a |e father| */../*|
|00000de0| 20 28 74 68 72 6f 75 67 | 68 20 74 68 65 20 72 65 | (throug|h the re|
|00000df0| 66 63 6f 6e 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |fcon in |the wind|
|00000e00| 6f 77 52 65 63 29 2e 20 | 54 68 65 20 72 65 73 74 |owRec). |The rest|
|00000e10| 20 6f 66 20 74 68 65 20 | 68 61 6e 64 6c 65 20 63 | of the |handle c|
|00000e20| 61 6e 20 62 65 20 6f 66 | 20 2a 2f 0d 09 2f 2a 20 |an be of| */../* |
|00000e30| 61 6e 79 20 66 6f 72 6d | 61 74 2e 20 2a 2f 0d 0d |any form|at. */..|
|00000e40| 09 74 79 70 65 64 65 66 | 09 73 74 72 75 63 74 20 |.typedef|.struct |
|00000e50| 50 61 72 65 6e 74 52 65 | 63 20 7b 0d 09 09 73 74 |ParentRe|c {...st|
|00000e60| 72 75 63 74 09 50 61 72 | 65 6e 74 52 65 63 09 2a |ruct.Par|entRec.*|
|00000e70| 2a 66 61 74 68 65 72 3b | 0d 09 09 73 74 72 36 34 |*father;|...str64|
|00000e80| 09 09 09 09 6e 61 6d 65 | 3b 0d 09 09 57 69 6e 64 |....name|;...Wind|
|00000e90| 6f 77 50 65 65 6b 09 09 | 09 77 69 6e 64 3b 0d 09 |owPeek..|.wind;..|
|00000ea0| 09 42 6f 6f 6c 65 61 6e | 09 09 09 09 72 65 62 75 |.Boolean|....rebu|
|00000eb0| 69 6c 64 3b 09 2f 2a 20 | 66 6c 61 67 20 73 65 74 |ild;./* |flag set|
|00000ec0| 20 62 79 20 73 6f 6e 20 | 74 6f 20 69 6e 64 69 63 | by son |to indic|
|00000ed0| 61 74 65 20 74 68 61 74 | 20 77 6f 72 6c 64 20 2a |ate that| world *|
|00000ee0| 2f 0d 09 09 09 09 09 09 | 09 09 09 09 2f 2a 20 68 |/.......|..../* h|
|00000ef0| 61 73 20 63 68 61 6e 67 | 65 64 20 73 6f 20 66 61 |as chang|ed so fa|
|00000f00| 74 68 65 72 20 73 68 6f | 75 6c 64 20 72 65 62 75 |ther sho|uld rebu|
|00000f10| 69 6c 64 20 6c 69 73 74 | 20 2a 2f 0d 09 7d 20 50 |ild list| */..} P|
|00000f20| 61 72 65 6e 74 52 65 63 | 3b 0d 09 0d 09 74 79 70 |arentRec|;....typ|
|00000f30| 65 64 65 66 09 50 61 72 | 65 6e 74 52 65 63 09 2a |edef.Par|entRec.*|
|00000f40| 50 61 72 65 6e 74 50 74 | 72 3b 0d 09 74 79 70 65 |ParentPt|r;..type|
|00000f50| 64 65 66 09 50 61 72 65 | 6e 74 50 74 72 09 2a 50 |def.Pare|ntPtr.*P|
|00000f60| 61 72 65 6e 74 48 61 6e | 64 6c 65 3b 0d 0d 2f 2a |arentHan|dle;../*|
|00000f70| 20 53 74 61 6e 64 61 72 | 64 20 70 69 63 6b 65 72 | Standar|d picker|
|00000f80| 20 72 65 63 6f 72 64 20 | 2a 2f 0d 0d 09 74 79 70 | record |*/...typ|
|00000f90| 65 64 65 66 20 73 74 72 | 75 63 74 20 50 69 63 6b |edef str|uct Pick|
|00000fa0| 52 65 63 20 7b 0d 09 09 | 73 74 72 75 63 74 09 50 |Rec {...|struct.P|
|00000fb0| 69 63 6b 52 65 63 09 09 | 2a 2a 66 61 74 68 65 72 |ickRec..|**father|
|00000fc0| 3b 09 09 2f 2a 20 42 61 | 63 6b 20 70 74 72 20 74 |;../* Ba|ck ptr t|
|00000fd0| 6f 20 64 61 64 20 2a 2f | 0d 09 09 73 74 72 36 34 |o dad */|...str64|
|00000fe0| 09 09 09 09 66 4e 61 6d | 65 3b 09 09 09 09 20 0d |....fNam|e;.... .|
|00000ff0| 09 09 57 69 6e 64 6f 77 | 50 74 72 09 09 09 77 69 |..Window|Ptr...wi|
|00001000| 6e 64 3b 09 09 09 2f 2a | 20 44 69 72 65 63 74 6f |nd;.../*| Directo|
|00001010| 72 79 20 77 69 6e 64 6f | 77 20 2a 2f 0d 09 09 42 |ry windo|w */...B|
|00001020| 6f 6f 6c 65 61 6e 09 09 | 09 09 72 65 62 75 69 6c |oolean..|..rebuil|
|00001030| 64 3b 0d 09 09 73 68 6f | 72 74 09 09 09 09 70 69 |d;...sho|rt....pi|
|00001040| 63 6b 49 44 3b 09 09 09 | 2f 2a 20 49 44 20 6f 66 |ckID;...|/* ID of|
|00001050| 20 74 68 69 73 20 70 69 | 63 6b 65 72 20 2a 2f 0d | this pi|cker */.|
|00001060| 09 09 52 65 73 54 79 70 | 65 09 09 09 09 72 54 79 |..ResTyp|e....rTy|
|00001070| 70 65 3b 09 09 09 2f 2a | 20 54 79 70 65 20 66 6f |pe;.../*| Type fo|
|00001080| 72 20 70 69 63 6b 65 72 | 20 2a 2f 0d 09 09 73 68 |r picker| */...sh|
|00001090| 6f 72 74 09 09 09 09 72 | 4e 75 6d 3b 09 09 09 2f |ort....r|Num;.../|
|000010a0| 2a 20 72 65 73 66 69 6c | 65 20 6e 75 6d 62 65 72 |* resfil|e number|
|000010b0| 20 2a 2f 0d 09 09 6c 6f | 6e 67 09 09 09 09 72 53 | */...lo|ng....rS|
|000010c0| 69 7a 65 3b 09 09 09 2f | 2a 20 73 69 7a 65 20 6f |ize;.../|* size o|
|000010d0| 66 20 61 20 6e 75 6c 6c | 20 72 65 73 6f 75 72 63 |f a null| resourc|
|000010e0| 65 20 2a 2f 0d 09 09 73 | 68 6f 72 74 09 09 09 09 |e */...s|hort....|
|000010f0| 6e 49 6e 73 74 73 3b 09 | 09 09 2f 2a 20 4e 75 6d |nInsts;.|../* Num|
|00001100| 62 65 72 20 6f 66 20 69 | 6e 73 74 61 6e 63 65 73 |ber of i|nstances|
|00001110| 20 2a 2f 0d 09 09 4c 69 | 73 74 48 61 6e 64 6c 65 | */...Li|stHandle|
|00001120| 09 09 09 69 6e 73 74 61 | 6e 63 65 73 3b 09 09 2f |...insta|nces;../|
|00001130| 2a 20 4c 69 73 74 20 6f | 66 20 69 6e 73 74 61 6e |* List o|f instan|
|00001140| 63 65 73 20 2a 2f 0d 09 | 09 50 74 72 09 09 09 09 |ces */..|.Ptr....|
|00001150| 09 64 72 61 77 50 72 6f | 63 3b 09 09 2f 2a 20 4c |.drawPro|c;../* L|
|00001160| 69 73 74 20 64 72 61 77 | 20 70 72 6f 63 20 2a 2f |ist draw| proc */|
|00001170| 0d 09 09 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 |...Contr|olHandle|
|00001180| 09 09 73 63 72 6f 6c 6c | 3b 09 09 09 2f 2a 20 53 |..scroll|;.../* S|
|00001190| 63 72 6f 6c 6c 20 62 61 | 72 20 2a 2f 0d 09 7d 20 |croll ba|r */..} |
|000011a0| 50 69 63 6b 52 65 63 3b | 0d 09 0d 09 74 79 70 65 |PickRec;|....type|
|000011b0| 64 65 66 09 50 69 63 6b | 52 65 63 09 2a 50 69 63 |def.Pick|Rec.*Pic|
|000011c0| 6b 50 74 72 3b 0d 09 74 | 79 70 65 64 65 66 09 50 |kPtr;..t|ypedef.P|
|000011d0| 69 63 6b 50 74 72 09 2a | 50 69 63 6b 48 61 6e 64 |ickPtr.*|PickHand|
|000011e0| 6c 65 3b 0d 0d 0d 2f 2a | 20 54 68 65 73 65 20 72 |le;.../*| These r|
|000011f0| 6f 75 74 69 6e 65 73 20 | 61 72 65 20 75 73 65 64 |outines |are used|
|00001200| 20 74 6f 20 67 69 76 65 | 20 62 69 72 74 68 20 74 | to give| birth t|
|00001210| 6f 20 74 79 70 65 20 70 | 69 63 6b 65 72 73 20 61 |o type p|ickers a|
|00001220| 6e 64 20 65 64 69 74 6f | 72 73 2e 2a 2f 0d 0d 70 |nd edito|rs.*/..p|
|00001230| 61 73 63 61 6c 20 76 6f | 69 64 09 09 09 43 61 6c |ascal vo|id...Cal|
|00001240| 6c 50 42 69 72 74 68 28 | 52 65 73 54 79 70 65 20 |lPBirth(|ResType |
|00001250| 74 2c 20 50 61 72 65 6e | 74 48 61 6e 64 6c 65 20 |t, Paren|tHandle |
|00001260| 70 61 72 65 6e 74 2c 20 | 73 68 6f 72 74 20 69 64 |parent, |short id|
|00001270| 29 3b 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 09 09 |);.pasca|l void..|
|00001280| 09 43 61 6c 6c 45 42 69 | 72 74 68 28 48 61 6e 64 |.CallEBi|rth(Hand|
|00001290| 6c 65 20 74 68 69 6e 67 | 2c 20 50 61 72 65 6e 74 |le thing|, Parent|
|000012a0| 48 61 6e 64 6c 65 20 70 | 61 72 65 6e 74 2c 20 73 |Handle p|arent, s|
|000012b0| 68 6f 72 74 20 69 64 29 | 3b 0d 0d 2f 2a 20 54 68 |hort id)|;../* Th|
|000012c0| 65 73 65 20 72 6f 75 74 | 69 6e 65 73 20 61 72 65 |ese rout|ines are|
|000012d0| 20 75 73 65 64 20 74 6f | 20 66 65 65 64 20 65 76 | used to| feed ev|
|000012e0| 65 6e 74 73 20 61 6e 64 | 20 6d 65 6e 75 20 63 61 |ents and| menu ca|
|000012f0| 6c 6c 73 20 74 6f 20 74 | 68 65 20 61 70 70 72 6f |lls to t|he appro|
|00001300| 70 72 69 61 74 65 0d 20 | 20 20 63 6f 64 65 20 73 |priate. | code s|
|00001310| 65 67 6d 65 6e 74 73 20 | 2a 2f 0d 70 61 73 63 61 |egments |*/.pasca|
|00001320| 6c 20 76 6f 69 64 09 09 | 09 43 61 6c 6c 45 76 65 |l void..|.CallEve|
|00001330| 6e 74 28 45 76 65 6e 74 | 52 65 63 6f 72 64 20 2a |nt(Event|Record *|
|00001340| 65 76 74 2c 20 6c 6f 6e | 67 20 6f 62 6a 65 63 74 |evt, lon|g object|
|00001350| 2c 20 73 68 6f 72 74 20 | 69 64 29 3b 0d 70 61 73 |, short |id);.pas|
|00001360| 63 61 6c 20 76 6f 69 64 | 09 09 09 43 61 6c 6c 4d |cal void|...CallM|
|00001370| 65 6e 75 28 73 68 6f 72 | 74 20 6d 65 6e 75 2c 20 |enu(shor|t menu, |
|00001380| 73 68 6f 72 74 20 69 74 | 65 6d 2c 20 6c 6f 6e 67 |short it|em, long|
|00001390| 20 6f 62 6a 65 63 74 2c | 20 73 68 6f 72 74 20 69 | object,| short i|
|000013a0| 64 29 3b 0d 70 61 73 63 | 61 6c 20 76 6f 69 64 09 |d);.pasc|al void.|
|000013b0| 09 09 43 61 6c 6c 49 6e | 66 6f 55 70 64 61 74 65 |..CallIn|foUpdate|
|000013c0| 28 73 68 6f 72 74 20 6f | 6c 64 49 44 2c 20 73 68 |(short o|ldID, sh|
|000013d0| 6f 72 74 20 6e 65 77 49 | 44 2c 20 6c 6f 6e 67 20 |ort newI|D, long |
|000013e0| 6f 62 6a 65 63 74 2c 20 | 73 68 6f 72 74 20 69 64 |object, |short id|
|000013f0| 29 3b 0d 0d 70 61 73 63 | 61 6c 20 76 6f 69 64 20 |);..pasc|al void |
|00001400| 50 61 73 73 4d 65 6e 75 | 28 73 68 6f 72 74 20 6d |PassMenu|(short m|
|00001410| 65 6e 75 2c 20 73 68 6f | 72 74 20 69 74 65 6d 2c |enu, sho|rt item,|
|00001420| 20 50 61 72 65 6e 74 48 | 61 6e 64 6c 65 20 66 61 | ParentH|andle fa|
|00001430| 74 68 65 72 29 3b 0d 0d | 2f 2a 20 43 6f 6d 6d 6f |ther);..|/* Commo|
|00001440| 6e 20 75 74 69 6c 69 74 | 69 65 73 20 65 78 70 6f |n utilit|ies expo|
|00001450| 72 74 65 64 20 62 79 20 | 6d 61 69 6e 20 65 64 69 |rted by |main edi|
|00001460| 74 6f 72 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 57 |tor */..|pascal W|
|00001470| 69 6e 64 6f 77 50 74 72 | 09 57 69 6e 64 41 6c 6c |indowPtr|.WindAll|
|00001480| 6f 63 28 76 6f 69 64 29 | 3b 0d 70 61 73 63 61 6c |oc(void)|;.pascal|
|00001490| 20 76 6f 69 64 09 09 09 | 57 69 6e 64 46 72 65 65 | void...|WindFree|
|000014a0| 28 57 69 6e 64 6f 77 50 | 74 72 29 3b 0d 70 61 73 |(WindowP|tr);.pas|
|000014b0| 63 61 6c 20 4c 69 73 74 | 48 61 6e 64 6c 65 09 57 |cal List|Handle.W|
|000014c0| 69 6e 64 4c 69 73 74 28 | 57 69 6e 64 6f 77 50 74 |indList(|WindowPt|
|000014d0| 72 20 77 2c 20 73 68 6f | 72 74 20 6e 41 63 72 6f |r w, sho|rt nAcro|
|000014e0| 73 73 2c 20 50 6f 69 6e | 74 20 70 74 2c 20 73 68 |ss, Poin|t pt, sh|
|000014f0| 6f 72 74 20 64 72 61 77 | 50 72 6f 63 29 3b 0d 70 |ort draw|Proc);.p|
|00001500| 61 73 63 61 6c 20 76 6f | 69 64 09 09 09 57 69 6e |ascal vo|id...Win|
|00001510| 64 4f 72 69 67 69 6e 28 | 57 69 6e 64 6f 77 50 74 |dOrigin(|WindowPt|
|00001520| 72 29 3b 0d 70 61 73 63 | 61 6c 20 57 69 6e 64 6f |r);.pasc|al Windo|
|00001530| 77 50 74 72 09 57 69 6e | 64 53 65 74 75 70 28 73 |wPtr.Win|dSetup(s|
|00001540| 68 6f 72 74 20 77 69 64 | 74 68 2c 20 73 68 6f 72 |hort wid|th, shor|
|00001550| 74 20 68 65 69 67 68 74 | 2c 20 63 68 61 72 20 2a |t height|, char *|
|00001560| 74 2c 20 63 68 61 72 20 | 2a 73 29 3b 0d 0d 2f 2a |t, char |*s);../*|
|00001570| 20 45 78 74 65 6e 64 65 | 64 20 52 65 73 6f 75 72 | Extende|d Resour|
|00001580| 63 65 20 4d 61 6e 61 67 | 65 72 20 72 6f 75 74 69 |ce Manag|er routi|
|00001590| 6e 65 73 20 77 68 69 63 | 68 20 6f 6e 6c 79 20 61 |nes whic|h only a|
|000015a0| 63 74 20 6f 6e 20 6f 6e | 65 20 72 65 73 6f 75 72 |ct on on|e resour|
|000015b0| 63 65 20 66 69 6c 65 2c | 20 65 74 63 2e 20 2a 2f |ce file,| etc. */|
|000015c0| 0d 0d 70 61 73 63 61 6c | 20 73 68 6f 72 74 09 09 |..pascal| short..|
|000015d0| 43 75 72 72 65 6e 74 52 | 65 73 28 76 6f 69 64 29 |CurrentR|es(void)|
|000015e0| 3b 0d 70 61 73 63 61 6c | 20 73 68 6f 72 74 09 09 |;.pascal| short..|
|000015f0| 43 6f 75 6e 74 31 52 65 | 73 28 52 65 73 54 79 70 |Count1Re|s(ResTyp|
|00001600| 65 29 3b 0d 70 61 73 63 | 61 6c 20 73 68 6f 72 74 |e);.pasc|al short|
|00001610| 09 09 43 6f 75 6e 74 31 | 54 79 70 65 28 76 6f 69 |..Count1|Type(voi|
|00001620| 64 29 3b 0d 70 61 73 63 | 61 6c 20 48 61 6e 64 6c |d);.pasc|al Handl|
|00001630| 65 09 09 47 65 74 31 49 | 6e 64 65 78 28 52 65 73 |e..Get1I|ndex(Res|
|00001640| 54 79 70 65 2c 20 73 68 | 6f 72 74 20 69 6e 64 65 |Type, sh|ort inde|
|00001650| 78 29 3b 0d 70 61 73 63 | 61 6c 20 48 61 6e 64 6c |x);.pasc|al Handl|
|00001660| 65 09 09 47 65 74 31 52 | 65 73 28 52 65 73 54 79 |e..Get1R|es(ResTy|
|00001670| 70 65 2c 20 73 68 6f 72 | 74 20 69 64 29 3b 0d 70 |pe, shor|t id);.p|
|00001680| 61 73 63 61 6c 20 76 6f | 69 64 09 09 09 47 65 74 |ascal vo|id...Get|
|00001690| 31 49 64 78 54 79 70 65 | 28 52 65 73 54 79 70 65 |1IdxType|(ResType|
|000016a0| 20 2a 74 68 65 54 79 70 | 65 2c 20 73 68 6f 72 74 | *theTyp|e, short|
|000016b0| 20 69 29 3b 0d 70 61 73 | 63 61 6c 20 42 6f 6f 6c | i);.pas|cal Bool|
|000016c0| 65 61 6e 09 09 47 65 74 | 52 65 73 4c 6f 61 64 28 |ean..Get|ResLoad(|
|000016d0| 76 6f 69 64 29 3b 0d 70 | 61 73 63 61 6c 20 76 6f |void);.p|ascal vo|
|000016e0| 69 64 09 09 09 47 65 74 | 31 4d 61 70 45 6e 74 72 |id...Get|1MapEntr|
|000016f0| 79 28 52 65 73 4d 61 70 | 45 6e 74 72 79 20 2a 74 |y(ResMap|Entry *t|
|00001700| 68 65 45 6e 74 72 79 2c | 20 52 65 73 54 79 70 65 |heEntry,| ResType|
|00001710| 20 74 2c 20 73 68 6f 72 | 74 20 69 64 29 3b 0d 70 | t, shor|t id);.p|
|00001720| 61 73 63 61 6c 20 76 6f | 69 64 09 09 09 47 65 74 |ascal vo|id...Get|
|00001730| 31 49 4d 61 70 45 6e 74 | 72 79 28 52 65 73 4d 61 |1IMapEnt|ry(ResMa|
|00001740| 70 45 6e 74 72 79 20 2a | 74 68 65 45 6e 74 72 79 |pEntry *|theEntry|
|00001750| 2c 20 52 65 73 54 79 70 | 65 20 74 2c 20 73 68 6f |, ResTyp|e t, sho|
|00001760| 72 74 20 69 6e 64 65 78 | 29 3b 0d 0d 70 61 73 63 |rt index|);..pasc|
|00001770| 61 6c 20 76 6f 69 64 09 | 09 09 47 69 76 65 45 42 |al void.|..GiveEB|
|00001780| 69 72 74 68 28 48 61 6e | 64 6c 65 20 68 2c 20 50 |irth(Han|dle h, P|
|00001790| 69 63 6b 48 61 6e 64 6c | 65 20 70 69 63 6b 29 3b |ickHandl|e pick);|
|000017a0| 0d 70 61 73 63 61 6c 20 | 42 6f 6f 6c 65 61 6e 09 |.pascal |Boolean.|
|000017b0| 09 52 65 76 65 72 74 52 | 65 73 6f 75 72 63 65 28 |.RevertR|esource(|
|000017c0| 48 61 6e 64 6c 65 29 3b | 0d 0d 0d 2f 2a 4d 69 73 |Handle);|.../*Mis|
|000017d0| 63 65 6c 6c 61 6e 79 2a | 2f 0d 0d 70 61 73 63 61 |cellany*|/..pasca|
|000017e0| 6c 20 76 6f 69 64 09 09 | 09 41 62 6c 65 4d 65 6e |l void..|.AbleMen|
|000017f0| 75 28 73 68 6f 72 74 20 | 6d 65 6e 75 2c 20 6c 6f |u(short |menu, lo|
|00001800| 6e 67 20 65 6e 61 62 6c | 65 29 3b 0d 70 61 73 63 |ng enabl|e);.pasc|
|00001810| 61 6c 20 76 6f 69 64 09 | 09 09 41 70 70 52 65 73 |al void.|..AppRes|
|00001820| 28 76 6f 69 64 29 3b 0d | 70 61 73 63 61 6c 20 42 |(void);.|pascal B|
|00001830| 6f 6f 6c 65 61 6e 09 09 | 41 64 64 4e 65 77 52 65 |oolean..|AddNewRe|
|00001840| 73 28 48 61 6e 64 6c 65 | 20 68 4e 65 77 2c 20 52 |s(Handle| hNew, R|
|00001850| 65 73 54 79 70 65 20 74 | 2c 20 73 68 6f 72 74 20 |esType t|, short |
|00001860| 69 64 4e 65 77 2c 20 63 | 68 61 72 20 2a 73 29 3b |idNew, c|har *s);|
|00001870| 0d 70 61 73 63 61 6c 20 | 76 6f 69 64 09 09 09 42 |.pascal |void...B|
|00001880| 75 62 62 6c 65 55 70 28 | 48 61 6e 64 6c 65 29 3b |ubbleUp(|Handle);|
|00001890| 0d 70 61 73 63 61 6c 20 | 73 68 6f 72 74 09 09 42 |.pascal |short..B|
|000018a0| 75 69 6c 64 54 79 70 65 | 28 52 65 73 54 79 70 65 |uildType|(ResType|
|000018b0| 20 74 2c 20 4c 69 73 74 | 48 61 6e 64 6c 65 20 6c | t, List|Handle l|
|000018c0| 29 3b 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 09 09 |);.pasca|l void..|
|000018d0| 09 43 6c 65 61 72 48 61 | 6e 64 28 48 61 6e 64 6c |.ClearHa|nd(Handl|
|000018e0| 65 29 3b 0d 70 61 73 63 | 61 6c 20 48 61 6e 64 6c |e);.pasc|al Handl|
|000018f0| 65 09 09 43 6f 70 79 52 | 65 73 28 48 61 6e 64 6c |e..CopyR|es(Handl|
|00001900| 65 20 2a 68 2c 20 42 6f | 6f 6c 65 61 6e 20 6d 61 |e *h, Bo|olean ma|
|00001910| 6b 65 49 44 2c 20 73 68 | 6f 72 74 20 72 65 73 4e |keID, sh|ort resN|
|00001920| 65 77 29 3b 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 |ew);.pas|cal void|
|00001930| 09 09 09 43 6f 6e 63 61 | 74 53 74 72 28 63 68 61 |...Conca|tStr(cha|
|00001940| 72 20 2a 73 74 72 31 2c | 20 63 68 61 72 20 2a 73 |r *str1,| char *s|
|00001950| 74 72 32 29 3b 0d 70 61 | 73 63 61 6c 20 76 6f 69 |tr2);.pa|scal voi|
|00001960| 64 09 09 09 44 6f 4c 69 | 73 74 45 76 74 28 45 76 |d...DoLi|stEvt(Ev|
|00001970| 65 6e 74 52 65 63 6f 72 | 64 20 65 2c 20 4c 69 73 |entRecor|d e, Lis|
|00001980| 74 48 61 6e 64 6c 65 20 | 6c 29 3b 0d 70 61 73 63 |tHandle |l);.pasc|
|00001990| 61 6c 20 48 61 6e 64 6c | 65 09 09 44 75 70 50 69 |al Handl|e..DupPi|
|000019a0| 63 6b 28 48 61 6e 64 6c | 65 20 68 2c 20 43 65 6c |ck(Handl|e h, Cel|
|000019b0| 6c 20 63 2c 20 50 69 63 | 6b 48 61 6e 64 6c 65 20 |l c, Pic|kHandle |
|000019c0| 70 69 63 6b 29 3b 0d 70 | 61 73 63 61 6c 20 42 6f |pick);.p|ascal Bo|
|000019d0| 6f 6c 65 61 6e 09 09 45 | 72 72 6f 72 43 68 65 63 |olean..E|rrorChec|
|000019e0| 6b 28 73 68 6f 72 74 20 | 65 72 72 2c 20 73 68 6f |k(short |err, sho|
|000019f0| 72 74 20 6d 73 67 49 44 | 29 3b 0d 70 61 73 63 61 |rt msgID|);.pasca|
|00001a00| 6c 20 42 6f 6f 6c 65 61 | 6e 09 09 46 69 6c 65 4e |l Boolea|n..FileN|
|00001a10| 65 77 54 79 70 65 28 4c | 69 73 74 48 61 6e 64 6c |ewType(L|istHandl|
|00001a20| 65 20 74 79 70 65 73 2c | 20 63 68 61 72 20 2a 73 |e types,| char *s|
|00001a30| 29 3b 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 09 09 |);.pasca|l void..|
|00001a40| 09 46 69 78 48 61 6e 64 | 28 6c 6f 6e 67 20 73 2c |.FixHand|(long s,|
|00001a50| 20 48 61 6e 64 6c 65 20 | 68 29 3b 0d 70 61 73 63 | Handle |h);.pasc|
|00001a60| 61 6c 20 76 6f 69 64 09 | 09 09 47 65 74 53 74 72 |al void.|..GetStr|
|00001a70| 28 73 68 6f 72 74 20 6e | 75 6d 2c 20 73 68 6f 72 |(short n|um, shor|
|00001a80| 74 20 6c 69 73 74 2c 20 | 63 68 61 72 20 2a 73 74 |t list, |char *st|
|00001a90| 72 29 3b 0d 70 61 73 63 | 61 6c 20 47 72 61 66 50 |r);.pasc|al GrafP|
|00001aa0| 74 72 09 09 47 65 74 54 | 68 65 50 6f 72 74 28 76 |tr..GetT|hePort(v|
|00001ab0| 6f 69 64 29 3b 0d 70 61 | 73 63 61 6c 20 42 6f 6f |oid);.pa|scal Boo|
|00001ac0| 6c 65 61 6e 09 09 48 61 | 6e 64 6c 65 43 68 65 63 |lean..Ha|ndleChec|
|00001ad0| 6b 28 48 61 6e 64 6c 65 | 20 68 2c 20 73 68 6f 72 |k(Handle| h, shor|
|00001ae0| 74 20 6d 73 67 49 44 29 | 3b 0d 70 61 73 63 61 6c |t msgID)|;.pascal|
|00001af0| 20 76 6f 69 64 09 09 09 | 4d 65 74 61 4b 65 79 73 | void...|MetaKeys|
|00001b00| 28 73 68 6f 72 74 20 2a | 63 6d 64 2c 20 73 68 6f |(short *|cmd, sho|
|00001b10| 72 74 20 2a 73 68 69 66 | 74 2c 20 73 68 6f 72 74 |rt *shif|t, short|
|00001b20| 20 2a 6f 70 74 29 3b 0d | 70 61 73 63 61 6c 20 48 | *opt);.|pascal H|
|00001b30| 61 6e 64 6c 65 09 09 4e | 65 77 52 65 73 28 6c 6f |andle..N|ewRes(lo|
|00001b40| 6e 67 20 73 2c 20 52 65 | 73 54 79 70 65 20 74 2c |ng s, Re|sType t,|
|00001b50| 20 4c 69 73 74 48 61 6e | 64 6c 65 20 6c 2c 20 73 | ListHan|dle l, s|
|00001b60| 68 6f 72 74 20 2a 6e 29 | 3b 0d 70 61 73 63 61 6c |hort *n)|;.pascal|
|00001b70| 20 76 6f 69 64 09 09 09 | 50 69 63 6b 45 76 65 6e | void...|PickEven|
|00001b80| 74 28 45 76 65 6e 74 52 | 65 63 6f 72 64 20 2a 65 |t(EventR|ecord *e|
|00001b90| 76 74 2c 20 50 69 63 6b | 48 61 6e 64 6c 65 20 70 |vt, Pick|Handle p|
|00001ba0| 69 63 6b 29 3b 0d 70 61 | 73 63 61 6c 20 76 6f 69 |ick);.pa|scal voi|
|00001bb0| 64 09 09 09 50 69 63 6b | 49 6e 66 6f 55 70 28 73 |d...Pick|InfoUp(s|
|00001bc0| 68 6f 72 74 20 6f 6c 64 | 49 44 2c 20 73 68 6f 72 |hort old|ID, shor|
|00001bd0| 74 20 6e 65 77 49 44 2c | 20 50 69 63 6b 48 61 6e |t newID,| PickHan|
|00001be0| 64 6c 65 20 70 69 63 6b | 29 3b 0d 70 61 73 63 61 |dle pick|);.pasca|
|00001bf0| 6c 20 76 6f 69 64 09 09 | 09 50 69 63 6b 4d 65 6e |l void..|.PickMen|
|00001c00| 75 28 73 68 6f 72 74 20 | 6d 65 6e 75 2c 20 73 68 |u(short |menu, sh|
|00001c10| 6f 72 74 20 69 74 65 6d | 2c 20 50 69 63 6b 48 61 |ort item|, PickHa|
|00001c20| 6e 64 6c 65 20 70 69 63 | 6b 29 3b 0d 70 61 73 63 |ndle pic|k);.pasc|
|00001c30| 61 6c 20 73 68 6f 72 74 | 09 09 52 65 73 45 64 49 |al short|..ResEdI|
|00001c40| 44 28 76 6f 69 64 29 3b | 0d 70 61 73 63 61 6c 20 |D(void);|.pascal |
|00001c50| 76 6f 69 64 09 09 09 52 | 65 73 45 76 65 72 65 73 |void...R|esEveres|
|00001c60| 74 28 76 6f 69 64 29 3b | 0d 70 61 73 63 61 6c 20 |t(void);|.pascal |
|00001c70| 76 6f 69 64 09 09 09 53 | 63 72 61 70 43 6f 70 79 |void...S|crapCopy|
|00001c80| 28 48 61 6e 64 6c 65 20 | 2a 68 29 3b 0d 70 61 73 |(Handle |*h);.pas|
|00001c90| 63 61 6c 20 76 6f 69 64 | 09 09 09 53 63 72 61 70 |cal void|...Scrap|
|00001ca0| 45 6d 70 74 79 28 76 6f | 69 64 29 3b 0d 70 61 73 |Empty(vo|id);.pas|
|00001cb0| 63 61 6c 20 76 6f 69 64 | 09 09 09 53 63 72 61 70 |cal void|...Scrap|
|00001cc0| 50 61 73 74 65 28 73 68 | 6f 72 74 20 72 65 73 46 |Paste(sh|ort resF|
|00001cd0| 69 6c 65 29 3b 0d 70 61 | 73 63 61 6c 20 76 6f 69 |ile);.pa|scal voi|
|00001ce0| 64 09 09 09 53 65 74 52 | 65 73 43 68 61 6e 67 65 |d...SetR|esChange|
|00001cf0| 64 28 48 61 6e 64 6c 65 | 29 3b 0d 70 61 73 63 61 |d(Handle|);.pasca|
|00001d00| 6c 20 76 6f 69 64 09 09 | 09 53 65 74 45 54 69 74 |l void..|.SetETit|
|00001d10| 6c 65 28 48 61 6e 64 6c | 65 20 68 2c 20 63 68 61 |le(Handl|e h, cha|
|00001d20| 72 20 2a 73 74 72 29 3b | 0d 70 61 73 63 61 6c 20 |r *str);|.pascal |
|00001d30| 73 68 6f 72 74 09 09 52 | 65 73 45 64 69 74 52 65 |short..R|esEditRe|
|00001d40| 73 28 76 6f 69 64 29 3b | 0d 70 61 73 63 61 6c 20 |s(void);|.pascal |
|00001d50| 76 6f 69 64 09 09 09 53 | 68 6f 77 49 6e 66 6f 28 |void...S|howInfo(|
|00001d60| 48 61 6e 64 6c 65 20 68 | 2c 20 50 61 72 65 6e 74 |Handle h|, Parent|
|00001d70| 48 61 6e 64 6c 65 20 64 | 61 64 29 3b 0d 0d 70 61 |Handle d|ad);..pa|
|00001d80| 73 63 61 6c 20 76 6f 69 | 64 09 09 09 52 53 65 65 |scal voi|d...RSee|
|00001d90| 64 46 69 6c 6c 28 50 74 | 72 20 73 72 63 50 74 72 |dFill(Pt|r srcPtr|
|00001da0| 2c 20 50 74 72 20 64 73 | 74 50 74 72 2c 0d 09 09 |, Ptr ds|tPtr,...|
|00001db0| 09 09 20 20 20 09 09 73 | 68 6f 72 74 20 73 72 63 |.. ..s|hort src|
|00001dc0| 52 6f 77 2c 20 73 68 6f | 72 74 20 64 73 74 52 6f |Row, sho|rt dstRo|
|00001dd0| 77 2c 20 73 68 6f 72 74 | 20 68 65 69 67 68 74 2c |w, short| height,|
|00001de0| 20 73 68 6f 72 74 20 77 | 6f 72 64 73 2c 0d 09 09 | short w|ords,...|
|00001df0| 09 09 20 20 09 09 73 68 | 6f 72 74 20 73 65 65 64 |.. ..sh|ort seed|
|00001e00| 48 2c 20 73 68 6f 72 74 | 20 73 65 65 64 56 29 3b |H, short| seedV);|
|00001e10| 0d 70 61 73 63 61 6c 20 | 76 6f 69 64 09 09 09 52 |.pascal |void...R|
|00001e20| 43 61 6c 63 4d 61 73 6b | 28 50 74 72 20 73 72 63 |CalcMask|(Ptr src|
|00001e30| 50 74 72 2c 20 50 74 72 | 20 64 73 74 50 74 72 2c |Ptr, Ptr| dstPtr,|
|00001e40| 0d 09 09 09 09 20 20 20 | 09 09 73 68 6f 72 74 20 |..... |..short |
|00001e50| 73 72 63 52 6f 77 2c 20 | 73 68 6f 72 74 20 64 73 |srcRow, |short ds|
|00001e60| 74 52 6f 77 2c 20 73 68 | 6f 72 74 20 68 65 69 67 |tRow, sh|ort heig|
|00001e70| 68 74 2c 20 73 68 6f 72 | 74 20 77 6f 72 64 73 29 |ht, shor|t words)|
|00001e80| 3b 0d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001f10| 20 20 49 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 66 | Instru|ctions f|
|00001f20| 6f 72 20 43 20 45 78 61 | 6d 70 6c 65 73 0d 0d 43 |or C Exa|mples..C|
|00001f30| 07 52 65 73 45 64 2e 68 | 02 00 00 00 54 45 58 54 |.ResEd.h|....TEXT|
|00001f40| 4d 50 53 20 01 00 00 40 | 00 40 09 c7 00 00 7c 79 |MPS ...@|.@....|y|
|00001f50| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 40 00 40 |..TEXTMP|S ...@.@|
|00001f60| 09 c7 65 64 00 00 00 00 | 00 00 00 00 00 00 00 00 |..ed....|........|
|00001f70| 00 00 9f 1a 0d c0 00 00 | 1e 03 00 00 01 7e 45 78 |........|.....~Ex|
|00001f80| 61 6d 70 6c 65 73 0d 0d | 0d 20 20 20 4e 6f 74 65 |amples..|. Note|
|00001f90| 3a 20 46 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |: For mo|re infor|
|00001fa0| 6d 61 74 69 6f 6e 20 61 | 62 6f 75 74 20 62 75 69 |mation a|bout bui|
|00001fb0| 6c 64 69 6e 67 20 74 68 | 65 20 73 61 6d 70 6c 65 |lding th|e sample|
|00001fc0| 20 70 72 6f 67 72 61 6d | 73 2c 20 73 65 65 0d 20 | program|s, see. |
|00001fd0| 20 20 43 68 61 70 74 65 | 72 20 31 20 6f 66 20 74 | Chapte|r 1 of t|
|00001fe0| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 50 72 6f |he Macin|tosh Pro|
|00001ff0| 67 72 61 6d 6d 65 72 27 | 73 20 57 6f 72 6b 73 68 |grammer'|s Worksh|
|00002000| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 7d 7d |...H..Mo|naco..}}|
|00002010| 7d 7d 7d 7d 7d 7d 7d 7d | 7d 7d 7d 7d 7d 7d 7d 7d |}}}}}}}}|}}}}}}}}|
|00002020| 7d 7d 7d 7d 7d 7d 00 06 | 00 04 00 31 00 0a 01 49 |}}}}}}..|...1...I|
|00002030| 01 ea 00 31 00 0a 01 49 | 01 ea 9e 86 72 d8 00 00 |...1...I|....r...|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00002050| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 27 cc 60 |...L...L|...2.'.`|
|00002060| 0a a8 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00002070| 00 0a 03 ed ff ff 00 00 | 00 00 00 28 f0 e8 00 00 |........|...(....|
+--------+-------------------------+-------------------------+--------+--------+